<template>
	<view >
		<view class="free-consult">
			免费咨询
		</view>
		
		<view class="rec">
			<view class="left">
				<view class="shu"></view>
				<view class="rec-left-text">推荐</view>
			</view>
		</view>
		
		<view class="consult">
			<view class="tabbar">
				<view class="tabbar-item">全部项目
					<uni-icons @click="open" type="arrowdown" size="14"></uni-icons>
				</view>
				<view class="tabbar-item">价格
					<uni-icons type="arrowdown" size="14"></uni-icons>
				</view>
				<view class="tabbar-item">排序
					<uni-icons type="arrowdown" size="14"></uni-icons>
				</view>
			</view>
		</view>
		<uni-popup class="pop" ref="popup1" type="top">
			<view style="background-color:#fff;position: relative;height: 300px;">
				<pics></pics>
			</view>
		</uni-popup>
		
	</view>
</template>

<script>
	import uniPopup  from '@/components/uni-popup/uni-popup.vue'
	import pics from '@/pages/pics/pics.vue'
	export default{
		components:{pics,uniPopup},
		data(){
			return{
				
			}
		},
		methods:{
			open(){
				this.$refs.popup1.open()
			}
		}
	}
	
</script>

<style lang="scss">
	.free-consult{
		// border: 1px solid;
		background-color: $uni-bg-color;
		height: 160rpx;
		text-align: center;
		line-height: 160rpx;
		margin: 15rpx 0;
	}
	.rec{
		display: flex;
		justify-content: space-between;
		margin: 10px 0;
		// width: 100%;
		height: 60rpx;
		// border: 1px solid red;
		line-height: 60rpx;
		.left{
			display: flex;
			.shu{
				width: 6rpx;
				height: 30rpx;
				margin: 15rpx;
				background-color: $uni-bg-color-pink;
			}
			.rec-left-text{
				color: #333333;
				font-size: 15px;
				font-weight: 600;
			}
		}
	}
	
	.consult{
		// position: fixed;
		// position: relative;
		// z-index: 500;
	}
	.pop{
		// position: relative;
	}
	.tabbar{
		display: flex;
		flex-direction: row;
		// width: 100%;
		height: 40px;
		line-height: 40px;
		border: 1px solid #EEE;
		.tabbar-item{
			display: flex;
			width: 250rpx;
			flex: 1;
			text-align: center;
		}
	}
</style>